]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
bluetooth: zero-pad PIN
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 17 May 2012 15:34:19 +0000 (17:34 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 18 May 2012 15:39:50 +0000 (17:39 +0200)
Bluetooth PINs always consist of 6 digits, so make sure to add
leading zeros as necessary.

https://bugzilla.gnome.org/show_bug.cgi?id=651251

js/ui/status/bluetooth.js

index 8342ab136500f7d7616361dd3fbeb01df75d509c..b9bba103689bfb2fcf78b603ea70cfd9e683731f 100644 (file)
@@ -380,7 +380,7 @@ const ConfirmNotification = new Lang.Class({
         this._applet = applet;
         this._devicePath = device_path;
         this.addBody(_("Device %s wants to pair with this computer").format(long_name));
-        this.addBody(_("Please confirm whether the PIN '%s' matches the one on the device.").format(pin));
+        this.addBody(_("Please confirm whether the PIN '%06d' matches the one on the device.").format(pin));
 
         this.addButton('matches', _("Matches"));
         this.addButton('does-not-match', _("Does not match"));